package client;


import java.io.Serializable;

public class SearchDetails implements Serializable
{
	private float minPrice = -1;
	private float maxPrice = -1;
	private int itemId = -1;
	private String[] freeText = null;
	private String[] colorsSelected = null;
	private  String[] typesSelected = null;
	private String callFrom = null;
	
	public SearchDetails(){}
	
	public void setCallFrom(String from)
	{this.callFrom = from;}
	
	public String getCallFrom()
	{return this.callFrom;}
	
	public void setminPrice(float price)
	{this.minPrice = price;}
	
	public float getminPrice()
	{return this.minPrice;}
	
	public void setmaxPrice(float price)
	{this.maxPrice = price;}
	
	public float getmaxPrice()
	{return this.maxPrice;}
	
	public void setitemId(int id)
	{this.itemId = id;}
	
	public int getitemId()
	{return this.itemId;}
	
	public void setcolorsSelected(String[] cSelected)
	{this.colorsSelected = cSelected;}
	
	public String[] getcolorsSelected()
	{return this.colorsSelected;}
	
	public void settypesSelected(String[] tSelected)
	{this.typesSelected = tSelected;}
	
	public String[] gettypesSelected()
	{return this.typesSelected;}
	
	public void setfreeText(String text)
	{
		if(!(text.isEmpty()))
			freeText = text.split(" ");
	}
	
	public String[] getfreeText()
	{return this.freeText;}
	
	
}
